#ifndef GENEDITOR_H
#define GENEDITOR_H

#include "../IModelEditor.h"
#include "../TextEditBase.h"

class GenEditor : public TextEditBase, public IModelEditor
{
public:
	GenEditor(void);
	virtual ~GenEditor(void);
	
	bool dirty();
	void setDirty(bool dirty);
	const QString& fileFilter();
	void clear();
	bool save(const QString& path);
	bool load(const QString& path);
	SemanticModel::ModelPtr generateModel();
	void setModel(const SemanticModel::Model& m);
};

#endif // GENEDITOR_H
